# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy
from scrapy import Field
from scrapy import Item


class JobItem(Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    # pass

    # 职位url   job_url
    job_url = Field()

    # 职位名称
    job_name = Field()

    # 公司名称
    company_name = Field()

    # 公司主页url
    company_detail_url = Field()

    # 职位城市
    city = Field()

    # 职位所属区
    district = Field()

    # 工作地点
    job_detail_address = Field()

    # 薪水
    salary = Field()

    # 发布时间
    publish_time = Field()

    # 查询时间
    query_time = Field()

    # 网站类型
    query_type = Field()


    # 添加


class JobDetailItem(Item):

    # 职位url
    job_url = Field()

    # 工作年限
    experience = Field()
    # 教育水平
    education_level = Field()
    # 招聘人数
    recruit_num = Field()

    # 工作福利
    work_welfare = Field()

    # 职位信息
    occupation_info = Field()

    # 工作联系方式
    job_contact_information = Field()

    # 查询时间
    query_time = Field()


class CompanyInfoItem(Item):

    # 公司名称
    company_name = Field()

    # 公司主页url
    company_detail_url = Field()

    # 公司类型
    conpany_type = Field()

    # 公司人数
    conpany_size = Field()

    # 公司定位
    company_orientation = Field()

    # 公司信息
    company_info = Field()

    # 是否名企
    company_level = Field()



